Algorithm

Like (offline) gradient descent but instead of ff, we use fif_i, i∈1,…,Ti \in 1,…,T

π±βˆ—=arg⁑min𝐱⁑fi(𝐱)\mathbf{x}^* = \arg \min_{\mathbf{x}} f_i(\mathbf{x}) (the offline optimum)

Assume:

  • f1,.,,fTf_1,.,,f_T are all convex
  • Each is G-Lipschitz: for all 𝐱\mathbf{x}, ii, ||βˆ‡fi(𝐱)||2≀G||\nabla f_i(\mathbf{x})||_2 \leq G
  • starting radius: ||π±βˆ—βˆ’π±(1)||2≀R||\mathbf{x}^{*}-\mathbf{x}^{(1)}||_2 \leq R

Online Gradient descent:

  • Choose 𝐱(1)\mathbf{x}^{(1)} and Ξ·=RGT\eta = \frac{R}{G \sqrt{T}}.
  • For i=0,…,Ti=0,…,T:
    • Play 𝐱(i)\mathbf{x}^{(i)}
    • Observe fif_i and incur cost fi(𝐱(i))f_i(\mathbf{x}^{(i)})
    • 𝐱(i+1)=𝐱(i)βˆ’Ξ·βˆ‡fi(𝐱(i))\mathbf{x}^{(i+1)}=\mathbf{x}^{(i)}-\eta \nabla f_i(\mathbf{x}^{(i)})

Online gradient descent analysis

online gradient descent regret bound

(see regret bound, online regret bound)

After TT steps, Ο΅=[βˆ‘i=1Tfi(𝐱(i))]βˆ’[βˆ‘i=1Tfi(π±βˆ—)]≀RGT\epsilon = [\sum_{i=1}^T f_i(\mathbf{x}^{(i)})]-[\sum_{i=1}^T f_i(\mathbf{x}^{*})] \leq RG\sqrt{T}

average regret over time is bounded by Ο΅T≀RGT\frac{\epsilon}{T} \leq \frac{RG}{\sqrt{T}}, goes β†’0\rightarrow 0 as Tβ†’βˆžT \rightarrow \infty

Note: no assumptions on how f1,…,fTf_1,…,f_T relate to each other, allowing even for these to be chosen adversarially, e.g. with fif_i depending on our choice of 𝐱i\mathbf{x}_i and all previous choices.

See also


References

  1. https://www.chrismusco.com/amlds2023/lectures/lec8_annotated.pdf
  2. L. Bottou, β€œOn-line Learning and Stochastic Approximations,” in On-Line Learning in Neural Networks, 1st ed., D. Saad, Ed., Cambridge University Press, 1999, pp. 9–42. doi: 10.1017/CBO9780511569920.003.